package model

import (
	"gorm.io/gorm"
	"time"
)

type UserGift struct {
	Id        int64          `gorm:"column:id;type:bigint(20);primaryKey;not null;" json:"id"`
	UserId    int64          `gorm:"column:user_id;type:bigint(20);not null;" json:"user_id"`
	GiftId    int64          `gorm:"column:gift_id;type:bigint(20);not null;" json:"gift_id"`
	Status    int32          `gorm:"column:status;type:int(10);comment:礼物状态:1:存在 2:送出;not null;" json:"status"` // 礼物状态:1:存在 2:送出
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	UpdateAt  time.Time      `gorm:"column:update_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"update_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
}
